package com.aaa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
@Data
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Salary implements Serializable {

    private Integer id;
    @NotNull(message = "参数不可为空")
    private Integer basicSalary;
    @NotNull(message = "参数不可为空")
    private Integer bonus;
    @NotNull(message = "参数不可为空")
    private Integer lunchSalary;
    @NotNull(message = "参数不可为空")
    private Integer trafficSalary;

    private Integer allSalary;//可为空，压根就不让你填
    @NotNull(message = "参数不可为空")
    private Integer pensionBase;
    @NotNull(message = "参数不可为空")
    private Float pensionPer;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    @NotNull(message = "参数不可为空")
    private Integer medicalBase;
    @NotNull(message = "参数不可为空")
    private Float medicalPer;
    @NotNull(message = "参数不可为空")
    private Integer accumulationFundBase;
    @NotNull(message = "参数不可为空")
    private Float accumulationFundPer;
    @NotNull(message = "参数不可为空")
    private String name;


}